package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.OrderitemViphallMapper;
import com.ktgj.service.domain.OrderitemViphall;
import com.ktgj.service.service.IOrderitemViphallService;

/**
 * 贵宾厅订单明细
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class OrderitemViphallServiceImpl implements IOrderitemViphallService 
{
    @Autowired
    private OrderitemViphallMapper orderitemViphallMapper;

    /**
     * 查询贵宾厅订单明细

     * 
     * @param orderitemviphallId 贵宾厅订单明细
ID
     * @return 贵宾厅订单明细

     */
    @Override
    public OrderitemViphall selectOrderitemViphallById(Long orderitemviphallId)
    {
        return orderitemViphallMapper.selectOrderitemViphallById(orderitemviphallId);
    }

    /**
     * 查询贵宾厅订单明细
列表
     * 
     * @param orderitemViphall 贵宾厅订单明细

     * @return 贵宾厅订单明细

     */
    @Override
    public List<OrderitemViphall> selectOrderitemViphallList(OrderitemViphall orderitemViphall)
    {
        return orderitemViphallMapper.selectOrderitemViphallList(orderitemViphall);
    }

    /**
     * 新增贵宾厅订单明细

     * 
     * @param orderitemViphall 贵宾厅订单明细

     * @return 结果
     */
    @Override
    public int insertOrderitemViphall(OrderitemViphall orderitemViphall)
    {
        orderitemViphall.setCreateTime(DateUtils.getNowDate());
        return orderitemViphallMapper.insertOrderitemViphall(orderitemViphall);
    }

    /**
     * 修改贵宾厅订单明细

     * 
     * @param orderitemViphall 贵宾厅订单明细

     * @return 结果
     */
    @Override
    public int updateOrderitemViphall(OrderitemViphall orderitemViphall)
    {
        orderitemViphall.setUpdateTime(DateUtils.getNowDate());
        return orderitemViphallMapper.updateOrderitemViphall(orderitemViphall);
    }

    /**
     * 批量删除贵宾厅订单明细

     * 
     * @param orderitemviphallIds 需要删除的贵宾厅订单明细
ID
     * @return 结果
     */
    @Override
    public int deleteOrderitemViphallByIds(Long[] orderitemviphallIds)
    {
        return orderitemViphallMapper.deleteOrderitemViphallByIds(orderitemviphallIds);
    }

    /**
     * 删除贵宾厅订单明细
信息
     * 
     * @param orderitemviphallId 贵宾厅订单明细
ID
     * @return 结果
     */
    @Override
    public int deleteOrderitemViphallById(Long orderitemviphallId)
    {
        return orderitemViphallMapper.deleteOrderitemViphallById(orderitemviphallId);
    }

    @Override
    public int updateByOrderViphallId(OrderitemViphall orderitemViphall) {
        return orderitemViphallMapper.updateByOrderViphallId(orderitemViphall);
    }
}
